package cn.test.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author hanchao
 * @date 2017/5/3 11:15
 */
@Controller
@RequestMapping("/timeout")
public class TimeoutController {
    @RequestMapping("/t1")
    @ResponseBody
    public String t1(int time){
        try {
            Thread.sleep(time);
        } catch(Exception e){
            e.printStackTrace();
        }
        return "over~~@#!@#~!@~!@~!@#!@#!@#~!";
    }
}
